


<!DOCTYPE html>
<!-- Website template by freewebsitetemplates.com -->
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>Grade Bay</title>
		<link rel="stylesheet" href="gui.css" type="text/css" />
                <link rel="stylesheet" href="style.css" type="text/css" />
		<!--[if IE 7]>
			<link rel="stylesheet" href="css/ie7.css" type="text/css" />
		<![endif]-->
                
          
                
                
                
          
	</head>
	<body>
		<div class="page">
			<div class="header">
				<a href="index.php" id="logo"><img src="images/gradeBaylogo.png" width="330" height="79" alt=""/></a>
				<ul>
					<li class="selected"><a href="">VIEW GRADE HISTORY</a></li>
					<?php
                                        
                                       
                                        if(!isset($_GET['studentID'])) $id=$_POST['studentID'];
                                        else $id=$_GET['studentID'];
                                            
                                        
                                        echo " <li><a href='viewStudentProfile.php?studentID=".$id."'>BACK</a></li>";
                                        ?>
			
				</ul>
			</div>
                    
                    
			<div class="body">
                            <div class="addsubject">
                           
                            
                            <?php

                            /*
                            * To change this template, choose Tools | Templates
                            * and open the template in the editor.
                            */    
                                     include 'PHPClasses/DBAccess.php';
                                     include 'PHPClasses/StudentDBAccess.php';
                                     include 'PHPClasses/GradeComputation.php';
                                               
                                    if(!isset($_POST['studentID'])){
                                        $studID=$_GET['studentID'];
                                    }
                                    else{
                                        $studID=$_POST['studentID'];
                                    }

                                       
                                   
                                    $DBAccess=new StudentDBAccess();
                                    
                                    $DBAccess->viewGradeHistory($studID);
                                 
           
                                               
           
           
                                    
                                    $DBAccess->DBDisconnect();

                                   
                            ?>   
                            </div>
			</div>
			<div class="footer">
				
				<p>&#169; Copyright &#169; 2011. Company name all rights reserved</p>
				<div class="connect">
					<a href=""><img src="images/paragox.png" width=160" height="110" alt=""/></a>
					<a href=""><img src="images/fblogo.png" width=120" height="100" alt="" style="position:relative; left:-31px"/></a>
					<a href=""><img src="images/harmony.png" width=120" height="100" alt="" style="position:relative; left:0px"/></a>
				</div>
			</div>
		</div>
	</body>
</html>  